/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.oalam.bookstore.dao;

/**
 *
 * @author Administrateur
 */
public class SQLDaoFactory implements DaoFactory {

    private boolean doUseTestdb = false;

    public SQLDaoFactory(boolean doUseTestdb) {
        this.doUseTestdb = doUseTestdb;
    }
    
    @Override
    public AccountDao createAccountDao() {
        return new SQLAccountDao(doUseTestdb);
    }

    @Override
    public BookDao createBookDao() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
